Ext.define('Admin.view.needWater.waterSupplyCal.WSChart1', {
    extend: 'Ext.panel.Panel',
    alias : 'widget.wsChart1',
    xtype: 'wsChart1',
    afterComponentLayout: function () {
        var me = this;
        var chartId = me.id + "-body";
        $('#' + chartId).highcharts({
            // chart: {
            //     width: width,
            //     height: height
            // },
            title: {
                text: ''
            },
            xAxis: {
                categories: ['2005', '2006', '2007', '2008', '2009', '2010', '2011', '2012', '2013', '2014', '2015']
            },
            yAxis: {
                title: {
                    text: '供水能力'
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            },
            tooltip: {
                // valueSuffix: '°C'
            },
            legend: {
                layout: 'horizontal',
                align: 'center',
                verticalAlign: 'top',
                borderWidth: 0
            },
            series: [
            {
                name: '最大供水能力',
                data: [19.8, 20.0, 23.9, 25.2, 28.0, 26.9, 31.1, 28.1, 29.6, 30.0, 31.0]
            }
            ],
            credits: {
                enabled: false
            }
        });
    }
});